﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FPSO.Models.Constant
{
    public static class TaskStartTypeConstant
    {
        public static readonly int DEFAULT_ID = 1;
        public static readonly int START_BY_TIME_ID = 1;
        public static readonly int START_BY_QUEUE_ID = 2;

        public static readonly string START_BY_TIME_NAME = "定时启动";
        public static readonly string START_BY_QUEUE_NAME = "顺序启动";

        private static readonly Dictionary<int, string> IdToNameDic;
        static TaskStartTypeConstant()
        {
            IdToNameDic = new Dictionary<int, string>();
            IdToNameDic.Add(START_BY_TIME_ID, START_BY_TIME_NAME);
            IdToNameDic.Add(START_BY_QUEUE_ID, START_BY_QUEUE_NAME);
        }

        public static string GetStartTypeName(int typeId)
        {
            return IdToNameDic[typeId];
        }
    }
}
